<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<title>用户管理-修改角色</title>
<link rel="stylesheet"
	href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css"
	integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N"
	crossorigin="anonymous">
<script
	src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"
	integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
	crossorigin="anonymous"></script>
<script
	src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"
	integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct"
	crossorigin="anonymous"></script>
<link
	href="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-bs4.min.css"
	rel="stylesheet">
<script
	src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-bs4.min.js"></script>
</head>
<nav class="navbar navbar-expand-lg navbar-light bg-light mb-2">
	<a class="navbar-brand" href="${ctx}">首页</a>
	<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
		<div class="navbar-nav">
			<a class="nav-link" href="${ctx}/user/list">用户管理</a> <a
				class="nav-link" href="${ctx}/user/list">菜单管理</a> <a
				class="nav-link active" href="${ctx}/role/list">角色管理</a>
		</div>
</nav>
<body>
	<form method="post" action="${ctx}/role/update" name="roleForm">
		<input name="role_id" type="hidden" value="${role.role_id }">
		<div class="card">
			<div class="card-header">修改角色</div>
			<div class="card-body">
				<p class="card-text">
				<div class="form-group">
					<label for="role_name">角色名称</label> <input type="text"
						class="form-control" id="role_name" name="role_name"
						value="${role.role_name }" readonly>
				</div>
				<div class="form-group">
					<label for="role_key">角色权限字符串</label> <input type="password"
						class="form-control" id="role_key" name="role_key"
						value="${role.role_key }">
				</div>
				<div class="form-group">
					<label for="remark">备注</label>
					<textarea class="form-control" rows="10" cols="80" id="remark"
						name="remark">${role.remark }</textarea>
				</div>

				</p>
				<button type="button"
					onclick="window.open('${ctx}/role/list','_self')"
					class="btn btn-danger">返回</button>
				<button type="reset" class="btn btn-primary">重置</button>
				<button type="submit" class="btn btn-success">修改</button>
			</div>
		</div>
	</form>
	<script>
		$('#remark').summernote({
			tabsize : 2,
			height : 100
		});
	</script>
</body>
</html>